<template>
    <div>
        <button @click="returnhome">返回首页</button>
        <br>
        <button @click="detailed">查看订单详细</button>
    </div>
</template>
<script setup lang="ts">
    import { ref } from 'vue';
    import { useRouter } from "vue-router";
    let router=useRouter();
    let returnhome=()=>{
        router.push('/home')
    }
    let detailed=()=>{
        router.push('/odredbody')
    }
</script>